//
//  SortCollectionViewCell.m
//  RRIsSmallPig
//
//  Created by K。 on 15/7/21.
//  Copyright (c) 2015年 寇广超. All rights reserved.
//

#import "SortCollectionViewCell.h"

@implementation SortCollectionViewCell
-(instancetype)initWithFrame:(CGRect)frame
{
    self =  [super initWithFrame:frame];
    if (self) {
        [self createSubView];
    }
    return self;
    
}

-(void)createSubView
{
  

   
    self.nameLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, -51, 100 , 40)];
    self.nameLabel.font = [UIFont systemFontOfSize:12.0];
    self.nameLabel.textAlignment =NSTextAlignmentCenter;
    self.nameLabel.backgroundColor = [UIColor lightGrayColor];
    self.nameLabel.font = [UIFont systemFontOfSize:14];
    self.nameLabel.numberOfLines = 2;
    self.nameLabel.layer.borderWidth = 0.5;
    self.nameLabel.layer.cornerRadius = 5;
    self.nameLabel.layer.masksToBounds = YES;
    [self.contentView addSubview:self.nameLabel];
}
-(void)layoutSubviews
{
    
  
}

@end
